home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
bit
/
src
/
ulib
/
read2lsb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
528b
|
21 lines
/***********************************************************************
* $Id: read2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $
*
*. Copyright(c) 1993,1994 by T.C. Zhao
* All rights reserved.
*.
* Read 2bytes LSB first
***********************************************************************/
#if !defined(lint) && defined(F_ID)
char *id_2lsb = "$Id: read2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $";
#endif
#include <stdio.h>
#include "ulib.h"
int
get2LSBF(FILE * fp)
{
return getc(fp) | (getc(fp) << 8);
}